package la.iok.hzsvn.lewin.movie.controller;

import la.iok.hzsvn.lewin.movie.service.MovieService;
import la.iok.hzsvn.share.response.ListDataResponse;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("internal-api/movies")
public class MovieInternalController {
    private final MovieService movieService;

    public MovieInternalController(MovieService movieService) {
        this.movieService = movieService;
    }

    @GetMapping("unsupportedReturnMoney")
    public ListDataResponse<Long> unsupportedReturnMoneyMovies(){
        return new ListDataResponse<>(movieService.unsupportedReturnMoneyMovies());
    }
}
